package com.zy.config;

import com.mybatisflex.core.FlexGlobalConfig;
import com.zy.entity.base.BaseEntity;
import com.zy.listener.MybatisEntityListener;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisFlexConfiguration {
//
//    public MyBatisFlexConfiguration() {
//
//        MybatisEntityListener mybatisInsertListener = new MybatisEntityListener();
//        FlexGlobalConfig config = FlexGlobalConfig.getDefaultConfig();
//
//        //设置BaseEntity类启用
//        config.registerInsertListener(mybatisInsertListener, BaseEntity.class);
//    }
}